package com.neulogistics.contrib.procuredcenter.api.application.converter;

import com.neulogistics.contrib.procuredcenter.api.application.query.VendorQuery;
import com.neulogistics.contrib.procuredcenter.infrastructure.persistence.orm.po.VendorPO;
import org.springframework.beans.BeanUtils;

public class VendorQueryPOConverter {
    public static VendorPO queryToPO(VendorQuery vendorQuery){
        if(vendorQuery == null){
            return null;
        }

        VendorPO vendorPO = new VendorPO();

        BeanUtils.copyProperties(vendorQuery, vendorPO);

        return vendorPO;
    }
}
